#coding:utf-8
import pickle
'''
f = open('user.txt','wb')
dic = {'admin':'admin'}
pickle.dump(dic,f)
f.close()
'''
f = open('book.txt','wb')
dic = {'JAVA程序设计':10,'Python从入门到放弃':10}
pickle.dump(dic,f)
f.close()